package me.zhengjie.minbearwcs.dao.shifting.impl;

import lombok.RequiredArgsConstructor;
import me.zhengjie.minbearwcs.dao.shifting.inf.ShiftingTaskRecordDao;
import me.zhengjie.minbearwcs.entity.Mapper.shifting.ShiftingTaskRecordMapper;
import me.zhengjie.minbearwcs.entity.PO.wcs.shifting.ShiftingTaskRecord;
import org.springframework.stereotype.Repository;

@Repository
@RequiredArgsConstructor
public class ShiftingTaskRecordDaoImpl implements ShiftingTaskRecordDao {

    private final ShiftingTaskRecordMapper mapper;

    @Override
    public boolean insert(ShiftingTaskRecord shiftingTaskRecord) {
        return mapper.insert(shiftingTaskRecord) == 1;
    }
}
